# 弹奏乐器
# 乐器类
class Instrument:
    def __init__(self,name):
        self.name = name
    def make_sound(self):
        print(f"{self.name}在弹奏")
# 二胡类
class Erhu(Instrument):
    pass
# 钢琴类
class Piano(Instrument):
    pass
# 小提琴类
class Violin(Instrument):
    pass
def play(instrument):
    instrument.make_sound()
play(Erhu("二胡"))
play(Piano("钢琴"))
play(Violin("小提琴"))